package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.DishDto;
import com.itheima.entity.Dish;

import java.util.List;

/**
 * @Auther: guozy
 * @Date: 2022/7/31 - 07 - 31 - 9:45
 * @Description: com.itheima.service
 * @version: 1.0
 */
public interface DishService extends IService<Dish> {
    //新增菜品,同时操纵两张表
    public void saveDishwithDishFlavor(DishDto dishDto);

    //通过id ,同时操纵两张表
    public DishDto getByIdWithFlavor(Long id);

    //更新菜品信息,同时更新对应的菜品口味表
    void updateDishwithDishFlavor(DishDto dishDto);

    void delectDishwithDishFlavor(List<Long> ids);
}

